package com.cssy.xxkj.basic.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.cssy.xxkj.basic.entity.BasicStapleUnitDO;

/**
 * 数据访问对象接口
 * @since 2014-09-10
 */
public interface BasicStapleUnitDAO extends BasicBizDAO<BasicStapleUnitDO>{

    /**
     * 插入数据
     * @param basicStapleUnitDO
     * @return 插入数据的主键
     */
    public String insertBasicStapleUnitDO(BasicStapleUnitDO basicStapleUnitDO)throws DataAccessException;

    /**
     * 统计记录数
     * @param basicStapleUnitDO
     * @return 查出的记录数
     */
    public Integer countBasicStapleUnitDOByExample(BasicStapleUnitDO basicStapleUnitDO)throws DataAccessException;

    /**
     * 更新记录
     * @param basicStapleUnitDO
     * @return 受影响的行数
     */
    public Integer updateBasicStapleUnitDO(BasicStapleUnitDO basicStapleUnitDO)throws DataAccessException;

    /**
     * 获取对象列表
     * @param basicStapleUnitDO
     * @return 对象列表
     */
    public List<BasicStapleUnitDO> findListByExample(BasicStapleUnitDO basicStapleUnitDO)throws DataAccessException;

    /**
     * 根据主键获取basicStapleUnitDO
     * @param id
     * @return basicStapleUnitDO
     */
    public BasicStapleUnitDO findBasicStapleUnitDOByPrimaryKey(String id)throws DataAccessException;

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteBasicStapleUnitDOByPrimaryKey(String id)throws DataAccessException;

}